﻿@model DateTime
@{var g = "D" + Guid.NewGuid().ToString("N");}
<span class="small-input">
   @Html.TextBox("", Model == DateTime.MinValue ? string.Empty : string.Format("{0:yyyy-MM-dd}", Model.Date), new {style="width:130px", id = g,data_val=false})
   
    <script type="text/javascript">        $(function () { $('#@(g)').datepicker(); });</script>
</span>